package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;


import java.math.BigDecimal;

import yf.mall.entity.TeamSaleEntity;
import yf.mall.vo.TeamSaleVo;

                    
/**
 * 月销业绩实体
 * 表名 team_sale
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Oct 27 14:46:14 CST 2021
 */
@Data
public class TeamSaleDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //业绩
            @ExcelProperty("业绩")
            private BigDecimal price;
        
                        //相关订单
            @ExcelProperty("相关订单")
            private String orderNo;
        
                        //时间
            @ExcelProperty("时间")
            private Date time;
        
                        //用户ID
            @ExcelProperty("用户ID")
            private Long userId;
        
    
    public TeamSaleDown() {

    }

    public TeamSaleDown(TeamSaleVo vo) {
        TeamSaleEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setPrice(entity.getPrice());
            
                                    this.setOrderNo(entity.getOrderNo());
            
                                    this.setTime(entity.getTime());
            
                                    this.setUserId(entity.getUserId());
            
            }


}
